package com.lebang.service.buss;

import com.lebang.entity.LbbApp;
import com.lebang.mapper.LbbAppMapper;
import com.lebang.model.vo.buss.AppSearchVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.HashMap;
import java.util.List;
import java.util.Map;


@Service
public class AppService {

    @Autowired
    private LbbAppMapper appMapper;

    public Map<String, Object> list(AppSearchVo vo) {
        Map<String, Object> data = new HashMap<String, Object>(1);
        Integer total = appMapper.total(vo);
        List<LbbApp> rows = appMapper.pagging(vo);
        data.put("total", total);
        data.put("rows", rows);
        return data;
    }



}
